<template>
	<view class="content">
		<uni-title type="h1" title="特权使用说明" align="center"></uni-title>
		<view class="">
			<rich-text :nodes="instructionsinfo" class="text"></rich-text>
		</view>
	</view>
	
</template>

<script>
	import {getinstructions} from "@/api/apiinfo";
	export default {
		data() {
			return {
				instructionsinfo:'',
			}
		},
		mounted() { ////////////////// uni组件样式重定义
			
		},
		onLoad() {
			this.getinstructionsinfo()//特权使用说明
		},
		methods: {
			getinstructionsinfo(){ //特权使用说明
				getinstructions().then((res) => {
					console.log("特权使用说明接口返回数据：")
					console.log(JSON.stringify(res));
					this.instructionsinfo = res.data.content
				}).catch(err => {
					// console.log(JSON.stringify(err))
					uni.showModal({
						title: '提示',
						content: '特权使用说明报错：'+err.errMsg,
						showCancel: false,
						success: function (res) {
							if (res.confirm) {
								// uni.switchTab({ //内部页面跳转方式
								// 	url: '/pages/shop/shop'
								// })
							} 
						}
					});
				})
			},
		}
	}
</script>

<style lang="scss">
	.content{
		padding: 30rpx;
		position: relative;
		
	}
	page{
		background-color: #f9f9f9;
	}
</style>